﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>




<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>雪票预定_我要滑雪网</title>
    <meta name="description" content="雪票预定" />
    <meta name="keywords" content="雪票预定" />
    <meta name="robots" content="all" />
    <link href="~/Css/ski.css" type="text/css" rel="stylesheet" />
    <link href="~/Css/style_zc.css" style="text/css" rel="stylesheet" />
    <link href="~/Css/public.css" style="text/css" rel="stylesheet" />
    <link href="~/Css/about.css" style="text/css" rel="stylesheet" />

    <script src="~/Js/Mobile device_style.js"></script>
    <script src="~/Js/jqueryhelp.js"></script>
    <script type="text/javascript" src="~/Js/tab.js"></script>
    <script src="~/Js/common.js" language="javascript"></script>


</head>
<base target="_self" />
<body>

    <div class="header">
        <div class="welcome">51SKI.COM 欢迎您</div>
    </div>
    <div class="wrap_zong">
        <div class="top">
            <div class="logo"><a href="/Home/Index" target="_self"><img src="http://img.51ski.com/images/logo-x.png" /></a></div>
            <div class="search">

                <form id="searchform" name="searchform" onsubmit="newsearch()">
                    <p class="p3">
                        <span class="jiaocheng_dj">雪场</span>
                        <input type="text" name="key" value="请输入雪场关键词" id="searchkey" />            <input type="submit" value="" class="submit" />
                    </p>
                    <div class="xiaxuan">
                        <span class="xuechang">雪场</span>
                        <span class="zixun">资讯</span>
                    </div>
                </form>


                <p class="p2"><span>|</span><a href="javascript:void(0)" class="shouji">手机版</a></p>

                <p class="p1"><span id="usernamespan" style="display:none"><a id="userName" href="/Home/Snow_Users"></a></span></p>


                <p class="p1"><a href="/Home/Snow_Users_Register">注册</a><span>|</span><a id="logoutspan" href="/Home/Snow_Users"><b class="color_red">登录</b></a></p>



                <p class="p4">
                    <a href="#">教学课程</a><a href="#">戏雪</a><a href="#">滑雪</a><a href="#">单板</a><a href="#">雪票预订</a>
                </p>

            </div>
            <ul class="nav">
                <li><a href="/Home/Snow_Map">雪场地图</a></li>
                <li><a href="/Home/News_Information">新闻资讯</a></li>
                <li><a href="/Home/Snow_Activity">雪场活动</a></li>
                <li><a href="/Home/Snow_Ticket">雪票预订</a></li>
                <li><a href="/Home/Snow_Course">滑雪教程</a></li>
                <li><a href="/Home/Snow_Video">酷炫视频</a></li>
                <li><a href="/Home/Snow_Users">用户中心</a></li>
            </ul>
        </div>
        <link rel="stylesheet" type="text/css" href="~/Css/jquery-ui.min.css">
        <script src="~/Js/jsondata.js"></script>
        <script src="~/Js/auth.js"></script>
        <script src="~/Js/newsearch.js">
        </script>
        <script src="~/Js/jquery-ui.min.js"></script>
        <script>
login();
var keyval = "雪场";
$(".xiaxuan").find("span").click(function(){
   keyval=$(this).html();
   if(keyval=="资讯"){
      $("#searchkey").val("请输入搜索内容");
   }else{
      $("#searchkey").val("请输入雪场关键词");
   }
});
    $("#searchkey").autocomplete({

	// 静态的数据源
    source: htmllist,
	select: function(event, ui){
		// event参数是事件对象
		$("#searchkey").val( ui.item.label);
		// 必须阻止默认行为，因为autocomplete默认会把ui.item.value设为输入框的value值
		event.preventDefault();
	}
	});
        </script>
        <div class="bannerBox">
            <link href="~/Css/xpshopping_style.css" style="text/css" rel="stylesheet" />
            <script>

//alert(packid);
 function exist(id){
    var s=document.getElementById(id);
    if(s){return true}
    else{return false}
   }

/**
 * 对Date的扩展，将 Date 转化为指定格式的String
 * 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符
 * 年(y)可以用 1-4 个占位符，毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
 * eg:
 * (new Date()).pattern("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
 * (new Date()).pattern("yyyy-MM-dd E HH:mm:ss") ==> 2009-03-10 二 20:09:04
 * (new Date()).pattern("yyyy-MM-dd EE hh:mm:ss") ==> 2009-03-10 周二 08:09:04
 * (new Date()).pattern("yyyy-MM-dd EEE hh:mm:ss") ==> 2009-03-10 星期二 08:09:04
 * (new Date()).pattern("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
 */
Date.prototype.pattern=function(fmt) {
    var o = {
    "M+" : this.getMonth()+1, //月份
    "d+" : this.getDate(), //日
    "h+" : this.getHours()%12 == 0 ? 12 : this.getHours()%12, //小时
    "H+" : this.getHours(), //小时
    "m+" : this.getMinutes(), //分
    "s+" : this.getSeconds(), //秒
    "q+" : Math.floor((this.getMonth()+3)/3), //季度
    "S" : this.getMilliseconds() //毫秒
    };
    var week = {
    "0" : "/u65e5",
    "1" : "/u4e00",
    "2" : "/u4e8c",
    "3" : "/u4e09",
    "4" : "/u56db",
    "5" : "/u4e94",
    "6" : "/u516d"
    };
    if(/(y+)/.test(fmt)){
        fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
    }
    if(/(E+)/.test(fmt)){
        fmt=fmt.replace(RegExp.$1, ((RegExp.$1.length>1) ? (RegExp.$1.length>2 ? "/u661f/u671f" : "/u5468") : "")+week[this.getDay()+""]);
    }
    for(var k in o){
        if(new RegExp("("+ k +")").test(fmt)){
            fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
        }
    }
    return fmt;
}




var now;
var pages;
var size =12;
$(document).ready(function getMeal(){
//alert(meal_type);
//alert(1);
sethtml(2,1,size);

								});
function sethtml(meal_type,page,rows){
	now=page;
	//alert(now)
	getData("http://admin.51ski.com/api/SetMeal/hadmeal.do", {
	"meal_type":meal_type,
        "state":1,
	"page":page,
	"rows":rows
	}, function(result) {
			var html;
			$(".x_shopping").empty();
			$("#on").empty();
			$.each(result.rows, function(i, item) {
				var snow_start=new Date();
							snow_start.setTime(item.pack.snow_start);
							var snow_end=new Date();
							snow_end.setTime(item.pack.snow_end);
							var url = "http://www.51ski.com/ticketbuy/?packid="+item.pack.id
							if(item.pack.id=="173"){
								url = "http://www.sjlski.com/p.asp"
							}
if(item.pack.id=="236"){
								url = "http://www.thaiwoo.com/winter/Project/Ticket#/index?Code=T&51ski"
							}
					html="<li id='"+item.pack.id+"'><a href='"+item.pack.homepage+"'><img src='"
			     				+item.pack.cover_pack+"'></a><h2><span>★</span>"
                    +item.pack.pack_name+"雪票预订<span>★</span></h2>"+
                    "<div class='xx_content'><table><tr><th>雪场地址：</th>"
                    +"<td>"+item.pack.geogeaphic_position_remark+"</td></tr>"
							+"<tr><th>营业时间：</th><td>"+
							snow_start.pattern("yyyy.MM.dd")+" ~ "+snow_end.pattern("yyyy.MM.dd")+
							"</td></tr></table></div><div class='piao_content'></div>"
                    +"<p class='btn_wrap'><a href='"+url+"'></a></p></li>"
if(item.pack.id=="109"||item.pack.id=="113"){
$(".x_shopping").prepend(html);
}else{
                    $(".x_shopping").append(html);
}
		//alert(item.packid)
    var packid=item.pack.id;
$.each(item.meallist,function(i,item1){
if(i<2){
			var html = "<p><span class='f_l'>"+item1.name+"</span><span class='f_r'><b>"+item1.price+"</b>元</span></p>"
			$("#"+packid).find(".piao_content").append(html);
			}else{
				return false;
			}
});

		});
		 $(".x_shopping li:nth-child(4n)").addClass("qc_margin")
		 var count = result.rows[0].count;
		 //alert(count);
		 pages = Math.ceil(count/rows);

		 	//alert(pages);
		 	for(var i=1;i<=pages;i++){
		 		//alert(i)
		 	//	alert(page);
		 		if((i-page)==0){
		 		 	$("#on").append("<a onclick='sethtml(2,"+(i)+","+size+")' class='on'>"+(i)+"</a>");
		 		 }else{
		 		 	$("#on").append("<a onclick='sethtml(2,"+(i)+","+size+")' >"+(i)+"</a>");
		 		 }
		 	}

									});
	}
function first(){
		sethtml(2,1,size);
	}
function end(){
		sethtml(2,pages,size);
	}

function up(){
	if(now<=1){
		sethtml(2,1,size);
	}else{
		sethtml(2,(now-1),size);
	}
}
function down(){
	if(now>=pages){
		sethtml(2,pages,size);
	}else{
		sethtml(2,(now+1),size);
	}
}
            </script>
            <link rel='stylesheet' type='text/css' href='~/Css/hx_paging.css' />
            <div class="shopping_section">
                <p class="zf_p1"><a href="http://www.51ski.com/">首页</a><span class="active">&gt;</span><a href="http://www.51ski.com/skiresort/">雪场地图</a><span>&gt;</span><a href="javascript:void(0)">雪票预订</a></p>
                <style>
                    .xsp_w_k {
                        width: 1200px;
                        margin: 0 auto;
                    }



                    .x_shopping li {
                        float: left;
                        width: 252px;
                        padding: 10px;
                        background: #f4f4f4;
                        margin-top: 20px;
                        margin-right: 36px;
                    }

                        .x_shopping li.qc_margin {
                            margin-right: 0;
                        }

                        .x_shopping li img {
                            width: 250px;
                            height: 166px;
                            border: 1px solid #fff;
                        }

                        .x_shopping li h2 {
                            min-height: 28px;
                            padding-top: 14px;
                            padding-bottom: 4px;
                            border-bottom: 1px dashed #898989;
                            font-size: 16px;
                            font-size: "微软雅黑";
                            line-height: 28px;
                        }

                            .x_shopping li h2 span {
                                color: #ff9600;
                            }

                        .x_shopping li .xx_content {
                            height: 51px;
                            border-bottom: 1px dashed #898989;
                            padding: 12px 0;
                        }

                            .x_shopping li .xx_content div {
                                float: left;
                            }

                                .x_shopping li .xx_content div p {
                                    line-height: 20px;
                                    font-size: 12px;
                                    color: #666666;
                                }

                            .x_shopping li .xx_content .txt_blod p {
                                font-weight: bold;
                            }

                        .x_shopping li .piao_content {
                            padding-top: 10px;
                        }

                            .x_shopping li .piao_content p {
                                line-height: 26px;
                                overflow: hidden;
                                height: 26px;
                            }

                            .x_shopping li .piao_content span b {
                                font-size: 22px;
                                font-family: Arial, Helvetica, sans-serif;
                                color: #ff1200;
                                margin-right: 4px;
                                position: relative;
                                bottom: -4px;
                            }

                            .x_shopping li .piao_content p .f_l {
                                float: left;
                                width: 196px;
                            }

                            .x_shopping li .piao_content p .f_r {
                                float: right;
                            }

                        .x_shopping li .btn_wrap {
                            display: block;
                            width: 191px;
                            height: 42px;
                            margin: 24px auto 0;
                            background: url("http://img.51ski.com/images/gm_btn.png") no-repeat;
                            cursor: pointer;
                        }

                    .xx_content table {
                        color: #666;
                    }

                    .xx_content th {
                        color: #666;
                        vertical-align: text-top;
                    }

                    .x_shopping {
                        overflow: hidden;
                        padding-bottom: 10px;
                    }

                        .x_shopping li .btn_wrap a {
                            display: block;
                            height: 42px;
                        }

                        /*临时*/
                        .x_shopping li h2 {
                            height: 28px;
                            padding-top: 14px;
                            padding-bottom: 4px;
                            border-bottom: 1px dashed #898989;
                            font-size: 16px;
                            line-height: 28px;
                            overflow: hidden;
                        }

                    .xx_content th {
                        color: #666;
                        vertical-align: text-top;
                        width: 62px;
                    }

                    .x_shopping li {
                        height: 428px;
                    }

                    .x_shopping li {
                        position: relative;
                    }

                        .x_shopping li .btn_wrap {
                            display: block;
                            width: 191px;
                            height: 42px;
                            margin: 24px auto 0px;
                            background: transparent url("http://img.51ski.com/images/gm_btn.png") no-repeat scroll 0% 0%;
                            cursor: pointer;
                            position: absolute;
                            bottom: 10px;
                            left: 38px;
                        }
                    /*临时*/
                </style>
                <div class="xsp_w_k">

                    <ul class="x_shopping"></ul>
                </div>
                <div class="hx_paging"><table><tr><td><ul><li onclick="first()"><a>首页</a></li><li class="no_pre" onclick="up()"><a>上一页</a></li><li id="on" class="on"></li><li class="next" onclick="down()"><a target="_self">下一页</a></li><li class="moye" onclick="end()"><a>末页</a></li></ul></td></tr></table></div>
            </div>
        </div>
        <div class="zx_footer">

            <ul>
                <li>
                    <img src="http://img.51ski.com/images/weibo_tuo1.png" />
                    <input type="button" value="进入官方微博" onclick="window.open('http://weibo.com/51ski/profile?s=6cm7D0')" />
                </li>
                <li>
                    <img src="http://img.51ski.com/images/weixin_tuo1.png" />
                    <input type="button" value="扫一扫立即注册" />
                </li>
            </ul>
            <div class="erweima">
                <img src="http://img.51ski.com/images/erweima.png" />
            </div>
            <div class="foot_con">
                <p><a href="http://www.51ski.com/aboutus/">关于我们</a><span>|</span><a href="http://www.51ski.com/law/">法律声明</a><span>|</span><a href="http://www.51ski.com/joinus/">加入我们</a><span>|</span><a href="http://www.51ski.com/coop/">合作雪场</a><span>|</span><a href="http://www.51ski.com/connection/">联系我们</a></p>
                <p>&copy;Copyright    1996-2014 51SKI  Corporation, All Rights Reserved</p>
                <p><a href="http://www.miitbeian.gov.cn/publish/query/indexFirst.action">51SKI 京公网安备11010102001739号/京ICP备15016851号-4</a></p>
                <p>我要滑雪网   版权所有 </p>
            </div>

        </div>
        <script type="text/javascript">
try{
var _ourplusPageurl = top.location.href;
}catch(e)
{
var _ourplusPageurl = location.href;
}
document.getElementById("logoutspan").href = "http://www.51ski.com/login/index.html?reurl=" + _ourplusPageurl;
        </script>
        <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?3bbc0e16ff36039bc4d0e85091a39c71";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
        </script>

    </div>
</body>

</html>
